<template>
    <div class="wrap">
        <div v-html="drugIntro" class="drugIntro">

        </div>
    </div>
</template>

<script>
    import { drugstatinfo } from "./../api/index";
    export default{
        data(){
            return{
                drugstateid:'',//药态id,
                drugIntro:'',//药态详情
            }
        },
        mounted(){
            let mstr = sessionStorage.getItem('mstr')
            if(this.$route.params.id){
                this.drugstateid = this.$route.params.id
                sessionStorage.setItem('drugstateid',this.$route.params.id)
            }else{
                this.drugstateid = sessionStorage.getItem('drugstateid')
            }
            drugstatinfo(mstr,this.drugstateid).then(res=>{
                if(res.data.status === 1){
                    this.drugIntro = res.data.data.drugstateurl
                }
            })
        }
    }
</script>

<style lang="scss" scoped>
@import "../base/css/_base.scss";
.wrap{
    padding: torem(30px);
}
.drugIntro{
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    overflow: hidden;
}
.drugIntro img{
    width: 100% !important;
    max-width: 750px;
}

</style>